<!-- /* Description for file.
 * 简历附件页面
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/resources
 * @since         ues
 * @version       V0.0.1
 * @modifiedby   会兵2011年0709
 * @lastmodified  会兵2011年0709
 */
 -->

<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
?>
<script>
function getDelStr() {
	var delArr = $("#resumefileform :checkbox:checked");
	if(delArr.length==0)
	{
		alert("请选择项!");
		return;
	}
	var str = "";
	for(var i=0;i<delArr.length;i++) {
		var del = delArr[i].value;
		str += del;
		str += "/";
	}
	$("#delids").val(str);
}
$(document).ready(function(){
	$("#delfile").click(function(){
		getDelStr();
		$("#resumefileform").attr('action','<?php echo ROOT_WEB_PATH; ?>/resumes/delsomeresumefile');
		$("#resumefileform").submit();
	});
});

</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Resumesmanagements');//一级目录
										   echo '>';echo __('Resumesallinfo search');//一级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Customer Managements Detail',true));//简历详细信息当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td height="20"><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/resumedetail/<?php echo $resume['Resume']['id'];?>">具体简历</a></td>
		<td ><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/mutualityresume/<?php echo $resume['Resume']['id'];?>">相关简历</a></td>
		<td ><a href="<?php echo ROOT_WEB_PATH; ?>/resumespostils/init/<?php echo $resume['Resume']['id'];?>">简历批注</a></td>
		<td ><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/resumecommend/<?php echo $resume['Resume']['id'];?>" >推荐面试</a></td>
		<TD align="center"><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/allinfosuitposition/<?php echo $resume['Resume']['id'];?>">适合职位</a></TD>
		<td align="center"><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/resumefiles/<?php echo $resume['Resume']['id'];?>" style="color:Red;">简历附件</a></td>
		<td ><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/resumereports/<?php echo $resume['Resume']['id'];?>">简历报告</a></td>
		<TD align="center"><a href="<?php echo ROOT_WEB_PATH; ?>/resumes/viewresumecontext/<?php echo $resume['Resume']['id'];?>">查看全文</a></TD>
		</tr>
		<tr>
			<td colspan="11">简历原件：
				<?php 	if($resume['Resume']['resumefilepath']!=null&&$resume['Resume']['resumefilepath']!="")
						{
							$dir="files-resumefiles";
							echo $html->link($resume['Resume']['resumefilename'],
										'/resumes/down/'.$dir.'/'.$resume['Resume']['resumefilepath'],
										array('class'=>'view'));
						}
				?> 
			</td>
		</tr>
		<tr>
			<td>简历ID：
				<span style="word-break:break-all;"><?php echo $resume['Resume']['id'];?></span>
			</td>
		</tr>
</table>
<?php echo $form->create('Resume',array('action'=>'addresumefile','type'=> 'post','enctype'=>'multipart/form-data','id'=>'resumefileform'));?>
	<?php echo $form->hidden('delids',array('id'=>'delids','name'=>'delids'))?>
	<?php echo $form->hidden('resumeid',array('value'=>$resume['Resume']['id'],'id'=>'resumeid'));?>

	<table width="95%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
		<TR>
			<TD>登记内容：</TD>
			<TD colspan="2">
				<?php echo $form->text('context',array('lable'=>false,'class'=>'TextBoxH'))?>
			</TD>
		</TR>
		<tr>
			<TD>登记附件</td>
			<td>
				<?php echo $form->file('resumefile',array('lable'=>false,'name'=>'resumefile','class'=>'TextBoxH'))?>
			</td>
			<td></td>
		</tr>
		<TR>
			<TD width="100"></TD>
			<td colspan="2"><?php echo $form->button('添加',array('type'=>'submit','class'=>'newsubmit'));?>
			<?php echo $form->button('删除',array('id'=>'delfile','class'=>'deletebutton'));?></td>
		</TR>
	</TABLE>

<div class="dDag01">
	<table class="tab1">
		<tr>
			<th style="width:30px;">&nbsp;</th><th>登记信息</th><th>附件</th><th>登记人</th><th>登记时间</th>
		</tr>
		<?php 
			foreach ($resumefiles as $k => $v)
			{
				echo "<tr class=normal onmouseover='this.className= \"over \" '
			onmouseup='this.className= \"over \" '
			onmouseout='this.className= \"normal \" '><td style='width:30px;'>";
				echo $form->checkbox($v['Attachment']['id'], array('value' => $v['Attachment']['id'],'name'=>'checkbox_name'));
				echo "</td>";
				echo "<td>";
				echo $v['Attachment']['context'];
				echo "</td>";
				echo "<td>";
				if($v['Attachment']['filePath']!=null&&$v['Attachment']['filePath']!="")
				{
					$dir="files-resumefiles";
					echo $html->link($v['Attachment']['fileName'],
					'/resumes/down/'.$dir.'/'.$v['Attachment']['filePath'],
					array('class'=>'view'));
				}
				echo "</td>";
				echo "<td>";
				echo $v['Attachment']['uploadPerson'];
				echo "</td>";
				echo "<td>";
				echo $v['Attachment']['uploadTime'];
				echo "</td></tr>";
			}
		?>
	</table>
</div>
<?php echo $form->end();?>
</div>